package com.whut.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 管理员类
 */
@Data
public class Admin implements Serializable {
    private static final long serialVersionUID = 1L;

    private Long id;
    private String username;
    private String password;
    private LocalDateTime loginTime;

    //公共字段，所有表基本都有这些字段
    @TableField(fill = FieldFill.INSERT)           //插入时填充字段
    private LocalDateTime createTime;
    @TableField(fill = FieldFill.INSERT_UPDATE)    //插入更新时填充字段
    private LocalDateTime updateTime;
    @TableField(fill = FieldFill.INSERT)           //插入时填充字段
    private Long  createUser;
    @TableField(fill = FieldFill.INSERT_UPDATE)    //插入更新时填充字段
    private Long updateUser;

}
